#if !defined(SERVER_H)
#define SERVER_H

#include <sys/socket.h>
#include <iostream>
#include <arpa/inet.h>
#include <map>
using namespace std;

class Server
{
private:
    int serverSocket; 
    map<int, int> m_clients; //palyer--socket
    int _player;
    bool bStart; //两个用户都连接成功后才开始运行
public:
    Server();
    ~Server();
    void init();
    void start();
    void readBuff();
    void closeAll();
    void sendStart();
};

#endif // SERVER_H
